package DesignPattern.Proxy.Interface;

import DesignPattern.Proxy.JDK.HelloWorld;
import DesignPattern.Proxy.JDK.HelloWorldImpl;

import java.lang.reflect.Proxy;

/**
 * @Author: Jun
 * @Date: 2018/9/28 17:30
 */
public class testInterceptorJdkProxy {
    public static void main(String[] args) {
        HelloWorld proxy= (HelloWorld) InterceptorJdkProxy.bind(new HelloWorldImpl(),"DesignPattern.Proxy.Interface.MyIntercepter");
        proxy.sayHelloWorld();
    }
}
